﻿namespace Volo.Abp.AspNetCore.Mvc.UI.Theming
{
    public static class ThemeExtensions
    {
        public static string GetApplicationLayout(this ITheme theme, bool fallbackToDefault = true)
        {
            return theme.GetLayout(StandardLayouts.Application, fallbackToDefault);
        }

        public static string GetAccountLayout(this ITheme theme, bool fallbackToDefault = true)
        {
            return theme.GetLayout(StandardLayouts.Account, fallbackToDefault);
        }

        public static string GetEmptyLayout(this ITheme theme, bool fallbackToDefault = true)
        {
            return theme.GetLayout(StandardLayouts.Empty, fallbackToDefault);
        }
    }
}